package edu.dayu.listener;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

/**
 * @author: dayu
 * @date: 2023-07-17 14:53
 */
public class MyFirstListener implements TaskListener {
    @Override
    public void notify(DelegateTask delegateTask) {
        if (EVENTNAME_CREATE.equals(delegateTask.getEventName())){
            delegateTask.setAssignee("zidingyi");
        }
    }
}
